package com.rajaev.dtu.tractor.infrastructure.base.resp;

public class ResponseInfo< T extends Object> {

    private int respCode = 1000;

    private String errorMsg;

    /**
     * 附加信息
     */
    private String attach;

    /**
     * 返回数据
     */
    public T data;

    public ResponseInfo() {
    }

    public ResponseInfo(int respCode, String errorMsg, String attach, T data) {
        this.respCode = respCode;
        this.errorMsg = errorMsg;
        this.attach = attach;
        this.data = data;
    }

    public int getRespCode() {
        return respCode;
    }

    public void setRespCode(int respCode) {
        this.respCode = respCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getAttach() {
        return attach;
    }

    public void setAttach(String attach) {
        this.attach = attach;
    }
}
